package com.hc.tenant.mapper;

import java.util.List;
import com.hc.tenant.domain.MqttMsgSend;

/**
 * mqttMapper接口
 *
 * @author yjz
 * @date 2021-04-07
 */
public interface MqttMsgSendMapper
{
    /**
     * 查询mqtt
     *
     * @param msgId mqttID
     * @return mqtt
     */
    public MqttMsgSend selectMqttMsgSendById(Long msgId);

    /**
     * 查询mqtt列表
     *
     * @param mqttMsgSend mqtt
     * @return mqtt集合
     */
    public List<MqttMsgSend> selectMqttMsgSendList(MqttMsgSend mqttMsgSend);


    public List<MqttMsgSend> selectMqttMsgSendLimitRetryList(int retry);


    /**
     * 新增mqtt
     *
     * @param mqttMsgSend mqtt
     * @return 结果
     */
    public int insertMqttMsgSend(MqttMsgSend mqttMsgSend);

    /**
     * 修改mqtt
     *
     * @param mqttMsgSend mqtt
     * @return 结果
     */
    public int updateMqttMsgSend(MqttMsgSend mqttMsgSend);

    /**
     * 删除mqtt
     *
     * @param msgId mqttID
     * @return 结果
     */
    public int deleteMqttMsgSendById(Long msgId);

    /**
     * 批量删除mqtt
     *
     * @param msgIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteMqttMsgSendByIds(Long[] msgIds);

}